import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_obs/flutter_obs.dart';
import 'package:flutter_obs/flutter_obs_platform_interface.dart';
import 'package:flutter_obs/flutter_obs_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

class MockFlutterObsPlatform
    with MockPlatformInterfaceMixin
    implements FlutterObsPlatform {

  @override
  Future<String?> getPlatformVersion() => Future.value('42');
}

void main() {
  final FlutterObsPlatform initialPlatform = FlutterObsPlatform.instance;

  test('$MethodChannelFlutterObs is the default instance', () {
    expect(initialPlatform, isInstanceOf<MethodChannelFlutterObs>());
  });

  test('getPlatformVersion', () async {
    FlutterObs flutterObsPlugin = FlutterObs();
    MockFlutterObsPlatform fakePlatform = MockFlutterObsPlatform();
    FlutterObsPlatform.instance = fakePlatform;

    // expect(await flutterObsPlugin.getPlatformVersion(), '42');
  });
}
